package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.DataStatus;
import com.ygqh.baby.ao.Message;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgDrawPrizeHelp;

public interface YgDrawPrizeHelpService {

	List<YgDrawPrizeHelp> find();

	int findCount();

	YgDrawPrizeHelp findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgDrawPrizeHelp ygDrawPrizeHelp);

	int update(YgDrawPrizeHelp ygDrawPrizeHelp);

	int saveOrUpdate(YgDrawPrizeHelp ygDrawPrizeHelp);

	ResultSet<YgDrawPrizeHelp> search(QueryInfo queryInfo, String q);

	Message addWxHelp(String sourceCode, String openId, DataStatus dataStatus);

	Boolean hasHelpByOpenId(String openId, String source, DataStatus dataStatus);

	List<YgDrawPrizeHelp> getWxHelpList(QueryInfo queryInfo, Long userId, String sourceCode);

	Message addWxHelp(String seoid, String openId);

	/**
	 * 被助力数
	 * @param userId
	 * @param sourceCode
	 * @return
	 */
	int countByUserId(Long userId, String sourceCode);

}
